type ResponseType =
    | {
          type: "text";
          body: string;
      }
    | {
          type: "arrayBuffer";
          body: BufferSource | Buffer;
      }
    | {
          type: "blob";
          body: Blob;
      }
    | {
          type: "json";
          body: Object;
      }
    | {
          type: "binary";
          body: Blob;
      }
    | {
          type: "readableStream";
          body: ReadableStream<Uint8Array> | null;
      };

export type RequestReturn = {
    status: number;
    headers: Headers;
    data: ResponseType;
};
export type ResponseRecord = {
    startTime: number;
    endTime: number;
} & RequestReturn;
